class Point {
  get name(): string {
    return this._name;
  }

  set name(value: string) {
    this._name = value;
  }
  private _name: string;
  constructor(n: string) {
    this._name = n;
  }
  run(): void {
    console.log(this._name);
  }
}
let p = new Point("zhansan");
p.run();
